
<div xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich">
                
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  

    <h:form id="login" rendered="#{not identity.loggedIn}">
    
    <rich:panel>
            <f:facet name="header">登陆</f:facet>
          
            <div class="menu1">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                    <h:outputLabel for="username">用户名</h:outputLabel>
                    <h:inputText id="username" 
                              value="#{identity.username}" size="14" />
                    
                    <h:outputLabel for="password">密码</h:outputLabel>
                    <h:inputSecret id="password" 
                                value="#{identity.password}" size="14"/>
                    <h:outputLabel for="rememberMe">记住我</h:outputLabel>
                    <h:selectBooleanCheckbox id="rememberMe" 
                                          value="#{identity.rememberMe}"/>
                </h:panelGrid>
            </div>               
        </rich:panel>          
        <div class="actionButtons">
            <h:commandButton value="登陆" action="#{identity.login}"/>
            <s:button value="注册" action="#{register.start}"/>
            <s:button value="取密码" action="#{fetchPassword.start}"/>          
        </div>      
    </h:form>
</div>
